package com.zoweunion.mechanic.dao.app;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zoweunion.mechanic.entity.TSSsInsuranceDetailEntity;
import com.zoweunion.mechanic.entity.TSSsInsuranceEntity;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;


@Component
public interface TSSsInsuranceDao  extends BaseMapper<TSSsInsuranceEntity>{

    List<TSSsInsuranceEntity> queryPage(Map<String, Object> map);

    TSSsInsuranceEntity getById(String id);

    void updateStatus(TSSsInsuranceEntity params);

    List<TSSsInsuranceDetailEntity> getDetailList(String id);

    void removeDelete(Long id,String text);

    void updateExpress(TSSsInsuranceEntity params);

    TSSsInsuranceEntity selectInsuranceOrderInfo(String id);

    int isNowApply(String carEngineNumber);

    Map<String,Object> getPayStatus(@Param("orderId")String orderId,@Param("orderType")Integer orderType);

    void updatePayStatus(String orderId);

    String getExtra(@Param("sendType") int sendType, @Param("orderId")Long id);

    void updateExtra(@Param("sendType")int sendType, @Param("orderId")Long id, @Param("extraParams")String extraParams);

    void updateCertificatePayStatus(String outTradeNo);
}
